<?php

namespace exceptions;

use Throwable;

/**
 * @title 权限错误
 * Class AuthException
 * @package exceptions
 */
class AuthException extends \RuntimeException
{
    public function __construct($message = "", $code = 0, Throwable $previous = null)
    {
        if (is_array($message)) {
            $errInfo = $message;
            $message = $errInfo[0] ??"未知错误";
            $code = $errInfo[1] ?? "未知错误";
        }
        parent::__construct($message, $code, $previous);
    }
}